Learn R Programming

deal (version 1.2-37)

Network tools: Tools for manipulating networks

Description

Various extraction/replacement functions for networks

Usage

modelstring(x) makenw(tb,template) as.network(nwstring,template) size(x) banlist(x) banlist(x) <- value getnetwork(x) gettrylist(x)

Arguments

x
an object of class network.
tb
a table output from autosearch or heuristic in the list property table. Can be translated into a networkfamily.
template
an object of class network with the same nodes as the networks described in the table tb.
nwstring
a string representing the network.
value
a numeric matrix with two columns. Each row contains the indices i -> j of arrows that may not be allowed in the directed acyclic graph.

Details

The string representation of a network is a minimal size representation to speed up calculations. The functions modelstring, as.network and makenw converts between the string represention and network objects.

size extracts the number of nodes in a network object.

banlist extracts the banlist from a network object.

getnetwork and gettrylist are accessor function that extracts a network object or trylist from the result from autosearch, heuristic, learn, perturb, networkfamily, drawnetwork.